'''
Author: xubing
Date: 2024-01-19 22:25:25
LastEditors: xubing
LastEditTime: 2024-01-23 15:16:03
Description: file content
'''
import os

part = "401-"
dir = 'fiction/%s/' % part
all_fiction = os.listdir(dir)
all_fiction = sorted(all_fiction)
concat_content = ''

for fic in all_fiction:
    with open(dir + fic, 'r') as f:
        content = f.read()
        content = "# " + content
        content += '\n\n\n'
        concat_content += content

with open('送葬人-%s.txt' % (part), 'w') as f:
    f.write(concat_content)

#     abs_fic = os.path.join(current_path, fic)
